<div class="box_rel">
	 <div id="results">
		 {% if user.squat is not null %}
		 <div id="result_squat">
			 <div id="squat_pic">
			 </div>
			 <span>{{user.squat}} {{ed_massa}}</span>
		 </div>
		 {% endif %}
		 {% if user.benchpress is not null %}
		 <div id="result_bp">
			 <div id="bp_pic">
			 </div>
			 <span>{{user.benchpress}} {{ed_massa}}</span>
		 </div>
		 {% endif %}
		 {% if user.deadlift is not null %}
		 <div id="result_dl">
			 <div id="dlift_pic">
			 </div>
			 <span>{{user.deadlift}} {{ed_massa}}</span>
		 </div>
		 {% endif %}
		 <div class="clear"></div>
	 </div>
	 <div id="main_avatar">
		  <div id="avatar">			 
			{% if user.avatar is null %}
			 <img src="images/no_avatar.png" alt="no_avatar"/>
			{% else %}
			<img src="user_photos/full_size/{{user.avatar}}" alt="{{user.name}}"/>
			{% endif %}
		 </div>
		 {% if user.my_user != true %}
			 <div id="action_btn" style="width:186px">
				 {% if user.is_friend != true %}
				 <input type="button" class="button" value="Дружить" onclick="add_to_friends(this,{{user.id}})" name="add_to_friends">
				 {% else %}
				 <input type="button" class="button" value="Отказаться от дружбы" onclick="delete_from_friends(this,{{user.id}})" name="delete_from_friends">
				 {% endif %}
				 <input type="button" class="button" value="Написать сообщение" name="quick_message">
				 <input type="button" class="button" value="Фотоальбомы" onclick="get_albums_of_user('photo',{{user.id}} )">
				 <input type="button" class="button" value="Видеоальбомы" onclick="get_albums_of_user('video',{{user.id}} )">
			 </div>
		 {% else %}
			 <div style="height:30px"></div>
		 {% endif %}
		 <input type="hidden" value="{{user.id}}" name="user_id">
	 </div>
	 <div id="personal">
		 <div id="name">
			 <span class="first_last_name">{{user.name}}</span>			
		 </div>
		 <div id="birth">
			 <span class="personal_title">{{date_of_birth}}:</span>
			 {% if user.dateOfBirth is not null %}
			 <span>{{user.dateOfBirth}} {{year}}</span>
			 {% else %}
			 <span>{{undefined}}</span>
			 {% endif %}
		 </div>
		 <div id="city">
			 <span class="personal_title">{{city}}:</span>
			 {% if user.location is not null %}
			 <span class="birth">{{user.location}}</span>
			 {% else %}
			 <span>{{undefined}}</span>
			 {% endif %}
		 </div>
		 <div id="heigth">
			 <span class="personal_title">{{height}}:</span>
			 {% if user.city is not null %}
			 <span>{{user.height}} {{ed_height}}</span>
			 {% else %}
			 <span>{{undefined}}</span>
			 {% endif %}
		 </div>
		 <div id="weigth">
			 <span class="personal_title">{{weight}}:</span>
			 {% if user.city is not null %}
			 <span>{{user.weight}} {{ed_massa}}</span>
			 {% else %}
			 <span>{{undefined}}</span>
			 {% endif %}
		 </div>							 
		 <div id="dead_lift">
			 <span class="personal_title">{{federation}}:</span>
			 {% if user.city is not null %}
			 <span>{{user.federation}}</span>
			 {% else %}
			 <span>{{undefined}}</span>
			 {% endif %}
		 </div>
		 <div id="dead_lift">
			 <span class="personal_title">{{level}}:</span>
			 {% if user.city is not null %}
			 <span>{{user.level}}</span>
			 {% else %}
			 <span>{{undefined}}</span>
			 {% endif %}
		 </div>
	 </div>
	 <div class="clear"></div>	
 </div>